home *** CD-ROM | disk | FTP | other *** search
- function explodebomb()
- {
- scorchlayer++;
- scorchmarks.temp.attachMovie("scorch","scorch" + scorchlayer,scorchlayer);
- with(eval("this.scorchmarks.temp.scorch" + scorchlayer))
- {
- _x = bx;
- _y = by;
- _width = bombsize * 1.3;
- _height = bombsize * 1.3;
- }
- eval("this.scorchmarks.temp.scorch" + (scorchlayer - 10)).play();
- lastbx = undefined;
- lastby = undefined;
- obx = 0;
- oby = 0;
- area = bombforce / (landdetail / 2);
- damage = Math.floor(bombsize / 2);
- i = 1;
- while(i < area)
- {
- b = hitarraynum - i;
- x = hitx + damage * Math.sin(i);
- hitit = Math.floor(x / landdetail);
- b = landarray[hitit];
- y = hity + damage * Math.cos(i);
- if(b < y)
- {
- landarray[hitit] = y;
- }
- i += 0.1;
- }
- explodesteps = 30;
- explodealpha = 100;
- action = "animate explosion";
- c = 10 + bombforce / 2;
- bomb._x = -10;
- bt = "bomb" + (explosiontype - 1) + "explode";
- attachMovie(bt,"bombland",17);
- bombland._x = bx;
- bombland._y = by;
- }
- scorchlayer = 300;
-